home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19941221-19950208 / 000130_news@columbia.edu_Sun Jan 8 19:16:08 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA27826
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Sun, 8 Jan 1995 14:16:12 -0500
  3. Received: by apakabar.cc.columbia.edu id AA02148
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Sun, 8 Jan 1995 14:16:11 -0500
  5. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  6. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: Grabbing text from a remote session
  9. Date: 8 Jan 1995 19:16:08 GMT
  10. Organization: Columbia University
  11. Lines: 33
  12. Message-Id: <3epdlo$232@apakabar.cc.columbia.edu>
  13. References: <D21Htq.161@murdoch.acc.virginia.edu>
  14. Nntp-Posting-Host: watsun.cc.columbia.edu
  15. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  16.  
  17. In article <D21Htq.161@murdoch.acc.virginia.edu>,
  18. Erik Hatcher <esh6h@fulton.seas.Virginia.EDU> wrote:
  19. >I want to have C-Kermit on a VAX dial up a remote computer
  20. >and enter in a Support call for processing by our company.
  21. >The process of entering the support call generates a sequence
  22. >number for that call that needs to be given back to
  23. >our client for future reference.  This sequence number just appears
  24. >on the screen when the information is being entered.
  25. >
  26. >Is there a way that I can grab this ever-changing value off the
  27. >screen some how?  I was thinking that I could possibly log the
  28. >session to a file and then read it back from that file, but
  29. >I won't be in "connect" mode so "log session" would not grab
  30. >it.  Is there an appropriate "log" command that I could use
  31. >to file away the remotes responses??
  32. >
  33. There are numerous approaches, none of them pretty.  You are deeply
  34. into the area we know as "screen scraping".
  35.  
  36. First of all, LOG SESSION should, indeed, work during script
  37. execution, as well as in CONNECT mode.  So the brute-force approach
  38. is to LOG SESSION and then grovel through the session-log file
  39. afterwards to find the sacred number, either by hand or by program.
  40.  
  41. Well, if it can be done by program, that means there is some pattern
  42. that allows you to locate the number.  If that is true, then you can
  43. also use INPUT or MINPUT commands in your Kermit script to locate
  44. (say) the thing that comes just before or just after the number, and
  45. then you can pull the number out of the \v(input) buffer by using
  46. string functions such as \findex(), \fsubstring(), etc, in a Kermit
  47. script program.
  48.  
  49. - Frank